---@class RedDotsGuildBossHandler
RedDotsGuildBossHandler = {};
local this = RedDotsGuildBossHandler;
function RedDotsGuildBossHandler.init()
    CloseEvent(Config.EventType.Union_Boss_Info_S2C, this.update);
    ListenEvent(Config.EventType.Union_Boss_Info_S2C, this.update);
    return this;
end

--
function RedDotsGuildBossHandler.getFlag(...)
    if GuildManager.getGuideBossInfo() and GuildManager.getGuideBossInfo().battleCount and GuildManager.getUnionId()~= 0 and G.dataTable["t_guildpara"]["7"].f_int_value - GuildManager.getGuideBossInfo().battleCount > 0 then
        return Config.RedDotsFlagState.Needful;
    end
    return Config.RedDotsFlagState.None;
end

function RedDotsGuildBossHandler.update()
    RedDotsManager.addBroadcast(Config.RedDotsType.GuildBoss);
end

return RedDotsGuildBossHandler;